﻿using System;

namespace _021.子类的构造
{
	class BaseClass
	{
		public int hp;
		public int speed;
		public BaseClass()
		{
            Console.WriteLine("父类的无参构造");
        }
		public BaseClass(int hp, int speed)
		{
			this.hp = hp;
			this.speed = speed;
			Console.WriteLine("父类的有参构造");
		}
	}
}
